<template>
<div>
  展示没绑定学生列表
  <table border="1" cellspacing="0" align="center">
    <tr>
      <td>学生姓名</td>
      <td>学生年龄</td>
      <td>操作</td>
    </tr>
    <tr v-for="i in stulist">
      <td>{{i.name}}</td>
      <td>{{i.age}}</td>
      <td @click="bind(i.id)">绑定</td>
    </tr>
  </table>
</div>
</template>

<script>
export default {
  name: "Stu_Bind",
  data(){
    return{
      stulist:{},
    }
  },
  methods:{
    get_stulist(){
      this.$axios.get('users/xstudentm/')
      .then(res=>{
        this.stulist=res.data.list
      })
    },
    bind(id){

    },
  },
  mounted() {
    this.get_stulist()
  }
}
</script>

<style scoped>

</style>
